import React from 'react';

interface IVImageProps {
  src: string;
  style?: React.CSSProperties;
  componentProps?: any;
}
const VImage: React.FC<IVImageProps> = ({ src, style, componentProps }) => {
  return (
    <div
      style={Object.assign({}, style, { overflow: 'hidden' })}
      {...componentProps}
    >
      <img src={src} style={{ width: '100%', height: '100%' }} alt="" />
    </div>
  );
};

export default VImage;
